package models

// Config 配置结构
type Config struct {
	Password      string   `yaml:"password" json:"password"`             // 密码哈希
	Port          int      `yaml:"port" json:"port"`                     // 端口
	MaxConcurrent int      `yaml:"max_concurrent" json:"max_concurrent"` // 最大并发数
	SharedFiles   []string `yaml:"shared_files" json:"shared_files"`     // 共享文件路径列表
}

// DefaultConfig 返回默认配置
func DefaultConfig() *Config {
	return &Config{
		Password:      "",
		Port:          8888,
		MaxConcurrent: 20,
		SharedFiles:   []string{},
	}
}

// ServerState 服务器状态
type ServerState string

const (
	StateStopped  ServerState = "stopped"
	StateStarting ServerState = "starting"
	StateRunning  ServerState = "running"
	StateStopping ServerState = "stopping"
)
